home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Network Support Library
/
RoseWare - Network Support Library.iso
/
apidev
/
tpapi.exe
/
DOCS
/
OLDDOCS.LZH
/
NWACCNTG.DOC
< prev
next >
Wrap
Text File
|
1993-10-13
|
5KB
|
108 lines
ACCOUNTING SERVICES
===================
--------------------------------------------------------------------------------
GetAccountStatus (BinderyObjectType : WORD;
BinderyObjectName : ObjectNameType;
VAR Balance, Limit : LONGINT;
VAR Holds : Longint32ArrayType) : WORD;
This function returns the account status of a bindery object.
BinderyObjectType (Input) : bindery object type for which the
request is being made.
BinderyObjectName (Input) : name of the bindery object.
Balance (Output) : number of value units left that the
object can use to buy network services.
Limit (Output) : the level at which the object can reach
before it can no longer buy services.
Holds (Output) : list of objects that have placed a hold
on the account.
--------------------------------------------------------------------------------
SubmitAccountCharge (BinderyObjectType : WORD;
BinderyObjectName : ObjectNameType;
ServiceType : WORD; ChargeAmount,
CancelHoldAmount : LONGINT;
CommentType : WORD; Comment : String255Type) : WORD;
This function updates the account of a bindery object.
BinderyObjectType (Input) : bindery object type for which the
update is being made.
BinderyObjectName (Input) : name of the bindery object.
ServiceType (Input) : identifies the type of service for
which the update is being made.
(usually the object type of the
charging account server)
ChargeAmount (Input) : the amount the account server charges
for the service it provides.
CancelHoldAmount (Input) : the amount to be subtracted from the
total amount of all holds previously
placed by the server. if no
SubmitAccountHolds call was made prior
then this should be 0.
CommentType (Input) : indicates the type of comment to be
placed in the audit report.
Comment (Input) : comment to be placed in the audit
report.
--------------------------------------------------------------------------------
SubmitAccountHold (BinderyObjectType : WORD;
BinderyObjectName : ObjectNameType;
ReserveAmount : LONGINT) : WORD;
This function reserves a specified amount of an object's account balance
pending a SubmitAccountCharge call.
BinderyObjectType (Input) : bindery object type for which the
update is being made.
BinderyObjectName (Input) : name of the bindery object.
ReserveAmount (Input) : the hold amount to be placed against
the client's account pending service.
--------------------------------------------------------------------------------
SubmitAccountNote (BinderyObjectType : WORD;
BinderyObjectName : ObjectNameType;
ServiceType, CommentType, CommentLen : WORD;
Comment : String255Type) : WORD;
This function adds a note about an object's account to an audit record.
BinderyObjectType (Input) : bindery object type for which the
update is being made.
BinderyObjectName (Input) : name of the bindery object.
ServiceType (Input) : identifies the type of service for
which the update is being made.
(usually the object type of the
charging account server)
CommentType (Input) : indicates the type of comment to be
placed in the audit report.
CommentLen (Input) : length of the comment.
Comment (Input) : comment to be placed in the audit
report.
--------------------------------------------------------------------------------